package com.wapper;

import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.Comparator;

public class arry {

    public static void main(String[] args) {
        Integer i1[]={33,2,4121,11};

        System.out.println(Arrays.toString(i1));

        Arrays.sort(i1, new Comparator<Integer>() {
            @Override
            public int compare(Integer o1, Integer o2) {



                return o2-o1;
            }
        });


        System.out.println(Arrays.toString(i1));
    }
}
